package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.QuestionBankComplexityEnum;
import com.battle.pojo.enums.QuestionBankTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * 题目管理
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "QUESTION_BANK_DETAILS",autoResultMap = true)
@Entity(name = "QUESTION_BANK_DETAILS")
@AccEntity(value = "题目管理", type = EntityType.SERVICE_ENTITY)
public class QuestionBankDetails extends DomainBaseEntity<QuestionBankDetails> {
    /**
     * 题库id
     */
    @Column()
    private Long questionBankId;

    /**
     * 题目名称
     */
    @Column()
    private String name;

    /**
     * 题目类型：0单选，1多选，2判断
     */
    @Column()
    private QuestionBankTypeEnum type;

    /**
     * 题目选项
     */
    @Column()
    private String options;

    /**
     * 题目答案
     */
    @Column()
    private String answer;

    /**
     * 解析
     */
    @Column()
    private String analysis;

    /**
     * 题目难易程度：0易，1偏易，2适中，3偏难，4难
     */
    @Column()
    private QuestionBankComplexityEnum complexity;

    /**
     * 试题来源
     */
    @Column()
    private String source;
}
